﻿Public Class ucNotification
	Public Overrides Sub SetDataSource(ByVal data As Object)
		If data Is Nothing Then
			MyBase.Clear()
			ucSound.Clear()
			ucImage.Clear()
			ucKeys.Clear()
			ucBalloonTip.Clear()
			Exit Sub
		End If

		MyBase.SetDataSource(data.ImageFileSettings)
		ucSound.SetDataSource(data.SoundFileSettings)
		ucImage.SetDataSource(data.ImageFileSettings)
		ucKeys.SetDataSource(data.KeysSettings)
		ucBalloonTip.SetDataSource(data.NotifyIconSettings)
	End Sub

	Public Sub New()
		InitializeComponent()
	End Sub
End Class
